RBScript.State Property
Syntax
State as Integer
State of the script compiler:0=Ready1=Running2=Complete3=Aborted.